package com.example.book_shop_java.dao;

import com.example.book_shop_java.bean.Address;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressDao {
    public List<Address> getAllAddress(int wx_userid);
    public int addAddress(@Param("wx_userid") int wx_userid, @Param("address") String address, @Param("wx_phone") String wx_phone, @Param("wx_nickname") String wx_nickname);
    public int deleteAddress(int address_id);
    public List<Address> getAddress(int address_id);
}
